import { shallowReactive } from 'vue'
import * as ElIcons from '@element-plus/icons-vue'

export const useElIcon = () => {
  const comps: any = shallowReactive({ ...ElIcons })

  const getIcon = (name: string) => {
    return comps[name]
  }
  return { getIcon }
}
